import { configureStore } from "@reduxjs/toolkit";

import userSlice from "@/pages/login/slice";
import appSlice from "./appSlice";
import trademarkSlice from "./trademarkSlice";
import type { PageListData } from "@/api/trademark";
import categorySlice from "./category";
import attrSlice from './attr'

export  interface storeData { 
  user: object;
  app: object;
  tardemark: PageListData
}

export const store = configureStore({
  reducer: {
    user: userSlice,
    app: appSlice,
    tardemark: trademarkSlice,
    category:categorySlice,
    attr:attrSlice
  },
});

export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
